programming - C - function strdupWhat links here?

Description

The strdup() function allocates memory and copies into it the string addressed by s1, including the terminating null character. It is the user's responsibility to free the allocated storage by calling free().

Syntax

char *strdup(const char *s1)


Parameters



Return Values

On success, strdup() returns a pointer to a newly allocated copy of the string s1. On failure, strdup() returns a null pointer and sets errno as follows:

programming - C - function strdup
filename:programming - C - function strdup
filename:programming%20%2D%20C%20%2D%20function%20strdup
last edit:April 05 2009 22:03:40 (5508 days ago)
ct = 1714955416.000000 = May 05 2024 20:30:16
ft = 1238983420.000000 = April 05 2009 22:03:40
dt = 475971996.000000